home *** CD-ROM | disk | FTP | other *** search
/ Chip: 25 Years Anniversary / CHIP_25Jahre_Jubilaeum.iso / G DATA AddOns2 / WebShop / _SETUP.1 / sb2buy1.js < prev    next >
Text File  |  2001-12-21  |  2KB  |  58 lines

  1. <!-- sb2buy1 Set Form Data                -->
  2. <!-- (c) Copyright 2001 GS Software       -->
  3. <!--                                      -->
  4.  
  5. <script LANGUAGE="JavaScript">
  6.  
  7. function getdata() {
  8.   // Collect and store delivery info
  9.   for(i=0;i<document.shipmentform.shipmentselect.length;++i) {
  10.     if(document.shipmentform.shipmentselect.options[i].selected == true) {
  11.       parent.myshipmentnr=i;
  12.       parent.myshipmentvalue=document.shipmentform.shipmentselect.options[i].value;
  13.       parent.myshipmenttext=document.shipmentform.shipmentselect.options[i].text;
  14.     } 
  15.   }
  16.   for(i=0;i<document.shipmentform.paymentselect.length;++i) {
  17.     if(document.shipmentform.paymentselect.options[i].selected == true) {
  18.       parent.mypaymentnr=i;
  19.       parent.mypaymentvalue=document.shipmentform.paymentselect.options[i].value;
  20.       parent.mypaymenttext=document.shipmentform.paymentselect.options[i].text;
  21.     } 
  22.   }
  23.   self.location= "buy2.htm";
  24.  
  25. }
  26.  
  27. {IfIclear}
  28. function getdataiclear() {
  29.   // Collect and store delivery info
  30.   for(i=0;i<document.shipmentform.shipmentselect.length;++i) {
  31.     if(document.shipmentform.shipmentselect.options[i].selected == true) {
  32.       parent.myshipmentnr=i;
  33.       parent.myshipmentvalue=document.shipmentform.shipmentselect.options[i].value;
  34.       parent.myshipmenttext=document.shipmentform.shipmentselect.options[i].text;
  35.     } 
  36.   }
  37.   for(i=0;i<document.shipmentform.paymentselect.length;++i) {
  38.     if(document.shipmentform.paymentselect.options[i].selected == true) {
  39.       parent.mypaymentnr=i;
  40.       parent.mypaymentvalue=document.shipmentform.paymentselect.options[i].value;
  41.       parent.mypaymenttext=document.shipmentform.paymentselect.options[i].text;
  42.     } 
  43.   }
  44. }
  45. {EndIfIclear}
  46.  
  47. function setdata() {
  48.   // Set delivery info
  49.  
  50.   document.shipmentform.shipmentselect.selectedIndex = parent.myshipmentnr;
  51.   document.shipmentform.paymentselect.selectedIndex = parent.mypaymentnr;
  52.  
  53.  
  54. }
  55.  
  56.  
  57. </script>
  58.